import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'home',
    component: function () {
      return import('../views/Index.vue')
    }
  }, {
    path: '/search',
    name: 'search',
    component: function () {
      return import('../views/Search.vue')
    }
  },{
    path: '/album',
    name: 'album',
    component: function () {
      return import('../views/Album.vue')
    }
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
